package com.atguigu.gmall.payment.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/***
 * 支付宝feign调用客户端
 */
@FeignClient(name = "service-payment", path = "/zfb/pay", contextId = "ZfbPayFeignClient")
public interface ZfbPayFeignClient {

    /**
     * 获取支付宝支付页面
     *
     * @param body
     * @param orderId
     * @param amount
     * @return
     */
    @GetMapping("/getPayPage")
    public String getPayPage(@RequestParam String body,
                             @RequestParam String orderId,
                             @RequestParam String amount);
}
